import { Button } from 'antd';
import { observer } from 'mobx-react';
import { useContext } from 'react';

import RootStore from '@/store/root';

const Login = () => {
  const root = useContext(RootStore);

  return (
    <Button
      onClick={() => {
        root.isLoggedIn = true;
      }}
    >
      Login
    </Button>
  );
};

export default observer(Login);
